
<?php include("header.php") ?>

<!--  start page-heading -->
<div id="page-heading">
<h1>Add a restaurant</h1>
</div>
<!-- end page-heading -->
<form id="resto_infomation" enctype="multipart/form-data"  action="addrestotodb.php" method="post">	
<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
<tr>
<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
<th class="topleft"></th>
<td id="tbl-border-top">&nbsp;</td>
<th class="topright"></th>
<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
</tr>
<tr>
<td id="tbl-border-left"></td>
<td>
<!--  start content-table-inner -->
<div id="content-table-inner">

<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr valign="top">
<td>

<!-- start id-form -->
<table border="0" cellpadding="0" cellspacing="0"  id="id-form">

<tr>
<th valign="top">Resto name FR:</th>
<td><input type="text" class="inp-form" id="namefr" name="namefr"/></td>
<td></td>
</tr>
<tr>
<th valign="top">Resto name ARB:</th>
<td><input type="text" class="inp-form" id="namearb" name="namearb"/></td>
<td>
</td>
</tr>
<tr>
<th>Introduce Picture</th>
<td><input type="file" class="file_1" id="intro_pic" name="intro_pic"/></td>
<td>
<div class="bubble-left"></div>
<div class="bubble-inner">JPEG, GIF 5MB max per image</div>
<div class="bubble-right"></div>
</td>
</tr>
<tr>
<th valign="top">Resto reduction:</th>
<td><input type="text" class="inp-form" id="restoredu" name="restoredu"/></td>
<td>
</td>
</tr>
<tr>
<th valign="top">Type:</th>
<td>
<?php
// Connect to server and select databse.
mysql_connect(DBADDR, DBUSER, DBPWD)or die("cannot connect");
mysql_select_db(DBNAME)or die("cannot select DB");
mysql_query('set names utf8'); 

$sql = "SELECT * from type_resto";
$rs_result = mysql_query ($sql);
?>		
<select  class="styledselect_form_1" id="restotype" name="restotype">
<?php
while ($row = mysql_fetch_assoc($rs_result)) { 
	?>
	<option value="<?php echo $row['TYPE_ID']; ?>"><?php echo $row['TYPE_NAME_FR']?></option>
	<?php
};
?> 
</select>
</td>
<td></td>
</tr>
<tr>
<th valign="top">Nation:</th>
<td>	
<select  class="styledselect_form_1" id="restonation" name="restonation">
<?php

$sql = "SELECT * from nation_name";
$rs_result = mysql_query ($sql);
while ($row = mysql_fetch_assoc($rs_result)) {
	?>
	<option value="<?php echo $row['NATION_ID']; ?>"><?php echo $row['NATION_NAME_FR']?></option>
	<?php
};
?> 
</select>
</td>
<td></td>
</tr> 
<tr>
<th valign="top">Tel:</th>
<td><input type="text" class="inp-form" id="tel" name="tel"/></td>
<td></td>
</tr>
<tr>
<th valign="top">Address</th>
<td><input type="text" class="inp-form" id="address" name="address" /></td>
<td></td>
</tr>
<tr>
<th valign="top">Mail</th>
<td><input type="text" class="inp-form" id="mail" name="mail" /></td>
<td></td>
</tr>
<tr>
<th valign="top">Description FR:</th>
<td><textarea rows="" cols="" style="resize:none" class="form-textarea" id="descfr" name="descfr"></textarea></td>
<td></td>
</tr>
<tr>
<th valign="top">Description ARB:</th>
<td><textarea rows="" cols="" style="resize:none" class="form-textarea" id="descarb" name="descarb"></textarea></td>
<td></td>
</tr>
<tr>
<th valign="top">Website</th>
<td><input type="text" class="inp-form" id="website" name="website"/></td>
<td></td>
</tr>
<tr>
<th valign="top">Open time FR</th>
<td><input type="text" class="inp-form" id="opentimefr" name="opentimefr"/></td>
<td></td>
</tr>
<tr>
<th valign="top">Open time ARB</th>
<td><input type="text" class="inp-form" id="opentimearb" name="opentimearb" /></td>
<td></td>
</tr>
<tr>
<th valign="top">Has coupon</th>
<td><input type="checkbox" name="hascoupon" id="hascoupon" checked="true"/></td>
<td></td>
</tr>
<tr>
<th valign="top">Can be reserved</th>
<td><input type="checkbox" name="hasreserv" id="hasreserv" checked="true"/></td>
<td></td>
</tr>

<tr>
<th>&nbsp;</th>
<td valign="top">
<input type="submit" value="" class="form-submit" />
<input type="reset" value="" class="form-reset"  />
</td>
<td></td>
</tr>
</table>
<!-- end id-form  -->

</td>
<td>

</td>
</tr>
<tr>
<td><img src="images/shared/blank.gif" width="695" height="1" alt="blank" /></td>
<td></td>
</tr>
</table>
</form>

<div class="clear"></div>


</div>
<!--  end content-table-inner  -->
</td>
<td id="tbl-border-right"></td>
</tr>
<tr>
<th class="sized bottomleft"></th>
<td id="tbl-border-bottom">&nbsp;</td>
<th class="sized bottomright"></th>
</tr>
</table>



<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer -->



<div class="clear">&nbsp;</div>
